package day04.test1;

import java.nio.channels.ScatteringByteChannel;
import java.util.Scanner;

public class test1 {
    public static void main(String[] args) {
        //循环  while  do while  for

//        int sum = 0;
//        int i = 1;
//        while(i<=10)
//        {
//            sum += i;
//            i++;
//            if(11 == i)
//            {
//                break;
//            }
//        }
//        System.out.println(sum);

        int sum = 0;
        int sta = 1;
        do {
            sum += sta;
            sta++;
        }while(sta <= 10);
        System.out.println(sum);
        //字符串比较 String s; "abc".equals(s)
        Scanner scan = new Scanner(System.in);
        String s = scan.next();


    }
}
